Release 10.1A: OpenEdge Development:
Java Open Clients


Purposed property accessor methods for RunTimeProperties class and Connection objects

In addition to the general property accessor methods, you can access properties using individual property accessor methods. Every property has a pair of methods you can use to set and get the value of the property.

When calling these methods on the RunTimeProperties class, use the class name to call the method. For example:

RunTimeProperties.setInitialConnections(5); 

When calling these methods on a Connection object, use the instance of the object to call the method. For example:

ConnectObj.setInitialConnections(5); 

Where ConnectObj is an instance of the com.progress.open4gl.javaproxy.Connection class.

Session methods

Table 7–2 lists the session property methods. For a detailed description of each property, see the "Alphabetical listing of properties" section.

Table 7–2: Session methods
Method
Description
setSessionMode(int sessionModel) 
getSessionModel() 
setInitialConnections
  (int nInitialConnections) 
getInitialConnections() 
setMaxConnections(int nMaxConnections) 
getMaxConnections() 
setMinConnections(int nMinConnections) 
getMinConnections() 
setIdleConnectionTimeout(int nTimeoutSec) 
getIdleConnectionTimeout() 
setConnectionLifetime
  (int nConnectionLifetimeSec) 
getConnectionLifetime() 
setNsClientMinPort(int nMinPortNum) 
getNsClientMinPort() 
setNsClientMaxPort(int nMaxPortNum) 
getNsClientMaxPort() 
setNsClientPortRetry(int nRetries) 
getNsClientPortRetry() 
setNsClientPortRetryInterval(int nDelayMs) 
getNsClientPortRetryInterval() 
setNsClientPicklistSize(int nPickListSize) 
getNsClientPicklistSize() 
setNsClientPicklistSize
   (int nPickListExpiration) 
getNsClientPicklistExpiration() 
setRequestWaitTimeout(int nRqWaitSec) 
getRequestWaitTimeout() 

Thread control methods

The AppServer can be accessed from a multi-threaded client. However, the AppServer itself is not multi-threaded. As a result, only one request is serviced at a time. If a method call is made from the client while another one is still running on the AppServer, the application can decide which of the following should happen:

The application can set the run-time properties to do either and can switch the setting at any time. The default is to throw an exception (WaitIfBusy=false).

The methods in Table 7–3 provide thread control to the Open Client Runtime. For a detailed description of each property, see the "Alphabetical listing of properties" section.

Table 7–3: Thread control methods
Method
Description/Property
setWaitIfBusy() 
setNoWaitIfBusy() 
getWaitIfBusy() 
Returns TRUE if setWaitIfBusy() was called; FALSE, if setNoWaitIfBusy() was called.

Proxy server specification methods

You use proxy server specification methods if a Proxy Web server exists between the client and the Web server hosting the AppServer Internet Adapter (AIA).

The methods in Table 7–4 provide Proxy Web server support to a Java Open Client application. For a detailed description of each property, see the "Alphabetical listing of properties" section.

Table 7–4: Proxy server specification methods
Method
Description
setProxyHost(String hostname) 
getProxyHost() 
setProxyPort(int port) 
getProxyPort() 
setProxyUserid(String userid) 
getProxyUserId() 
setProxyPassword(String password) 
getProxyPassword() 

Secure Sockets Layer management methods

When using HTTPS to access the AppServer, you must supply digital certificates with your client application.

The methods in Table 7–5 provide digital certificate management to the Open Client application. For a detailed description of each property, see the "Alphabetical listing of properties" section.

Table 7–5: Secure Sockets Layer management methods 
Method
Description
setCertificateStore
  (String certStoreList)

Sets PROGRESS.Session.certificateStore.

getCertificateStore()

Gets PROGRESS.Session.certificateStore.

setNoHostVerify(boolean verify)

Sets PROGRESS.Session.noHostVerify.

getNoHostVerify()
setnoSslSessionReuse(boolean verify) 
getnoSslSessionReuse() 

Tracing methods (RunTimeProperties only)

Tracing logs highlights of proxy execution, including data received by the client and data passed to the AppServer. The methods in Table 7–6 provide tracing functionality to the Open Client application. These methods apply to the RunTimeProperties class only. (They do not apply to Connection objects.) For a detailed description of each property, see the "Relationship between the RunTimeProperties class and Connection objects" section.

Table 7–6: Tracing methods
Method
Description
traceOn(String filename, int level) 
Sets these properties:
traceOn(int level) 
Sets these properties:
traceOn(String filename) 
Sets these properties:
traceOn() 
traceOff() 
isTracing() 


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095